cody - HTMLify profile

cody
4270 Files
633423 Views
Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/113 - Particle Effect Animation
* {
padding: 0%;
margin: 0%;
box-sizing: border-box;
}
#canva {
position: absolute;
padding: 0%;
margin: 0%;
box-sizing: border-box;
}
#canva {
position: absolute;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Particle effect animation</title>
<link rel="stylesheet" href="style.css">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Particle effect animation</title>
<link rel="stylesheet" href="style.css">
const canvas = document.getElementById("canva");
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
//particle array to store randomised particle
let particleArray;
//get mouse cursor postion
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
//particle array to store randomised particle
let particleArray;
//get mouse cursor postion